{# Twig
// This file should be in UTF8 without BOM - Accents examples: éèê
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr  |
// +----------------------------------------------------------------------+
// | This file is part of PEEL Shopping 7.2.1, which is subject to an	  |
// | opensource GPL license: you are allowed to customize the code		  |
// | for your own needs, but must keep your changes under GPL			  |
// | More information: https://www.peel.fr/lire/licence-gpl-70.html		  |
// +----------------------------------------------------------------------+
// | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/	  |
// +----------------------------------------------------------------------+
// $Id: avis_formulaire.tpl 44077 2015-02-17 10:20:38Z sdelaporte $
#}<h2>{{ STR_DONNEZ_AVIS }}</h2>
<form class="entryform form-inline" role="form" method="post" action="{{ action|escape('html') }}">
	<table class="avis_formulaire">
		<tr>
			<td colspan="2" class="entete">
			{% if type == 'produit' %}
				{{ STR_MODULE_AVIS_WANT_COMMENT_PRODUCT }} "{{ product_name }}"
			{% elseif type == 'annonce' %}
				{{ STR_MODULE_ANNONCES_AVIS_WANT_COMMENT_AD }} "{{ annonce_titre }}"
			{% endif %}
			</td>
		</tr>
		<tr>
			<td class="title_label top"> {{ STR_YOU_ARE }}{{ STR_BEFORE_TWO_POINTS }}:</td>
			<td>{{ prenom }} {{ nom_famille }}</td>
		</tr>
		<tr>
			<td class="title_label top"> {{ STR_PSEUDO }}{{ STR_BEFORE_TWO_POINTS }}:</td>
			<td><input type="text" class="form-control" name="pseudo" value="{% if not (pseudo) %}{{ pseudo_ses }}{% else %}{{ pseudo|str_form_value }}{% endif %}" maxlength="50" /></td>
		</tr>
		<tr>
			{% if (html_editor) %}
			<td class="top" colspan="2">
				{{ html_editor }}
			</td>
			{% else %}
			<td class="top">
				<b>{{ STR_YOUR_OPINION }} <span class="etoile">*</span></b>{{ STR_BEFORE_TWO_POINTS }}:
				<br /><input type="text" class="form-control compteur" name="compteur" size="4" onfocus="blur()" value="255" /> <span style="margin-left:5px;"> {{ STR_REMINDING_CHAR }}</span>
				<br />{{ error_avis }}
			</td>
			<td>
				<textarea class="form-control" name="avis" cols="36" rows="6" onfocus="Compter(this,255,compteur)" onkeypress="Compter(this,255,compteur, false)" onkeyup="Compter(this,255,compteur, false)" onblur="Compter(this,255,compteur, false)">{{ avis|html_entity_decode_if_needed }}</textarea>
			</td>
			{% endif %}
		</tr>
		{% if not (no_notation) %}
		<tr>
			<td class="top"><b>{{ STR_YOUR_NOTE }} <span class="etoile">*</span></b>{{ STR_BEFORE_TWO_POINTS }}:
				<br />{{ error_note }}
			</td>
			<td>
				<input type="radio" name="note" value="5" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><br />
				<input type="radio" name="note" value="4" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><br />
				<input type="radio" name="note" value="3" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><br />
				<input type="radio" name="note" value="2" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><br />
				<input type="radio" name="note" value="1" /><img src="{{ star_src|escape('html') }}" style="vertical-align:middle" alt="*" /><br />
			</td>
		</tr>
		{% endif %}
		<tr>
			<td colspan="2" class="center">
				<input type="hidden" name="id_utilisateur" value="{{ id_utilisateur|str_form_value }}" />
				<input type="hidden" name="prenom" value="{{ prenom|str_form_value }}" />
				<input type="hidden" name="email" value="{{ email|str_form_value }}" />
				{% if type == 'produit' %}
				<input type="hidden" name="prodid" value="{{ prodid|str_form_value }}" />
				<input type="hidden" name="nom_produit" value="{{ product_name|str_form_value }}" />
				{% elseif type == 'annonce' %}
				{{ STR_MODULE_ANNONCES_AVIS_WANT_COMMENT_AD }} "{{ annonce_titre }}"
				<input type="hidden" name="ref" value="{{ ref|str_form_value }}" />
				<input type="hidden" name="titre_annonce" value="{{ annonce_titre|str_form_value }}" />
				{% endif %}
				<input type="hidden" name="type" value="{{ type|str_form_value }}" />
				<input type="hidden" name="mode" value="insere" />
				<input type="hidden" name="langue" value="{{ langue|str_form_value }}" />
				<input class="btn btn-primary" type="submit" value="{{ STR_MODULE_AVIS_SEND_YOUR_OPINION|str_form_value }}" />
			</td>
		</tr>
		<tr>
			<td colspan="2"><p><span class="form_mandatory">(*) {{ STR_MANDATORY }}</span></p></td>
		</tr>
	</table>
</form>